package com.face.server.controller;

import com.face.RespMsg;
import com.face.server.service.impl.IndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("index")
public class IndexController {

    @Autowired
    IndexService indexService;

    @GetMapping
    RespMsg index(int buildSkip, int buildLimit) {
        return indexService.build(buildSkip, buildLimit);
    }

}

